<?php
/**
 * (commands)
 */
namespace App\Console\Commands\ZiNiaoApi;

use App\Logic\ZiNiao\Work\PlansTasks as PlansTasksWork;
use Illuminate\Console\Command;
class Tasks extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'ziniao:tasks {planId=0}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $planId = $this->argument('planId');
        PlansTasksWork::exe($planId);
        $this->info('finish!');
    }
}
